package com.mocha.bss;

import com.coffee.security.annotation.CoffeeEnableResourceImport;
import  lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
@CoffeeEnableResourceImport
@EnableDiscoveryClient
@SpringBootApplication
@EnableFeignClients
@MapperScan({"com.mocha.bss.domain.**.repository.mapper", "com.coffee.attachment.repository.mapper", "com.coffee.middleware.dict.repository.mapper", "com.coffee.log.dispose"})
@ComponentScan( {"com.mocha.bss", "com.coffee.middleware.dict", "com.coffee.attachment", "com.coffee.log"})
@Slf4j
public class BssApplication {
    public static void main(String[] args) {
        try{
            SpringApplication.run(BssApplication.class, args);
        }catch (Exception e){
            log.error("start kernel user error", e);
        }
    }
}

